From: Tim Deegan Date: Fri, 27 May 2011 07:56:47 +0000 (+0100) Subject: xen/x86: Add -Wnested-externs to CFLAGS X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~10269 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=dc74142c5a0300e33c1d478c63d0fbdf06ed49a2;p=xen.git xen/x86: Add -Wnested-externs to CFLAGS This will catch any new extern declarations that happen actually inside function bodies. Unfortunately there's no equivalent warning for extern declarations at rootl level in .c files. Signed-off-by: Tim Deegan --- diff --git a/xen/arch/x86/Rules.mk b/xen/arch/x86/Rules.mk index c15df0281e..bf77aef8b2 100644 --- a/xen/arch/x86/Rules.mk +++ b/xen/arch/x86/Rules.mk @@ -27,6 +27,7 @@ CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-default CFLAGS += -msoft-float $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS)) +$(call cc-option-add,CFLAGS,CC,-Wnested-externs) ifeq ($(supervisor_mode_kernel),y) CFLAGS += -DCONFIG_X86_SUPERVISOR_MODE_KERNEL=1